package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.entity.CnaaApplyFor;
import com.jeff.tianti.cms.dao.CnaaApplyForDao;
import com.jeff.tianti.cms.dto.CnaaApplyForQueryDTO;
import com.jeff.tianti.common.PageBean;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
/**
 * @author xujianfang
 * @desc CnaaApplyForService�� 
 * @date 2019-07-05
 */
@Service
public class CnaaApplyForService extends CommonService< CnaaApplyFor,String >  {

    @Autowired
    private CnaaApplyForDao cnaaApplyForDao;

    @Autowired
    public void setCnaaApplyForDao(CnaaApplyForDao cnaaApplyForDao){
      super.setCommonDao(cnaaApplyForDao);
    }

    public PageModel<CnaaApplyFor> queryCnaaApplyForPage(CnaaApplyForQueryDTO cnaaApplyForQueryDTO){
           return this.cnaaApplyForDao.queryCnaaApplyForPage(cnaaApplyForQueryDTO);
    }

    public List<CnaaApplyFor> queryCnaaApplyForList(CnaaApplyForQueryDTO cnaaApplyForQueryDTO){
           return this.cnaaApplyForDao.queryCnaaApplyForList(cnaaApplyForQueryDTO);
    }


    public Page<CnaaApplyFor> findAllNoDel(String level,Pageable pageable) {
        return this.cnaaApplyForDao.findAllNoDel(level,pageable);
    }

    public CnaaApplyFor findMaxSort() {
        return this.cnaaApplyForDao.findMaxSort();
    }
}